#ifndef __BSP_CAN_H__
#define __BSP_CAN_H__

#include "main.h"


typedef struct {
    int speed;
    int current;
    uint16_t encode;//角度编码
    float angle;//角度
    uint8_t temp;//温度

}Motor_Message;

void can_filter_init();
void can_transmit(int motor1,int motor2,int motor3,int motor4);
void deal_motor_message(uint8_t *rx_data, Motor_Message *motor);




#endif